<?php

namespace JLPay\Models\Ledger\Merchconf;

use JLPay\Models\BaseRequest;

/**
 * 商户分账查询请求
 */
class MerchIssueQueryRequest extends BaseRequest
{
    /**
     * API URL
     */
    public const API_URL = '/open/ledger/merch/issue/query';

    protected ?string $orgCode = null;
    protected ?string $mchId = null;

    /**
     * 设置机构代码
     *
     * @param string $orgCode
     * @return self
     */
    public function setOrgCode(string $orgCode): self
    {
        $this->orgCode = $orgCode;
        return $this;
    }

    /**
     * 设置商户号
     *
     * @param string $mchId
     * @return self
     */
    public function setMchId(string $mchId): self
    {
        $this->mchId = $mchId;
        return $this;
    }

    /**
     * 获取机构代码
     *
     * @return string|null
     */
    public function getOrgCode(): ?string
    {
        return $this->orgCode;
    }

    /**
     * 获取商户号
     *
     * @return string|null
     */
    public function getMchId(): ?string
    {
        return $this->mchId;
    }
} 